import {createStore} from 'vuex'

export default createStore({
        state: {
       data:{
               category:[
                       {
                               id:1,
                               category:"HTML",
                               url:"/cs/1",
                               blogs:[
                                       {
                                               id:1,
                                               title:"HTML5标签",
                                               content:"HTML5新增标签-内容"
                                       },
                                       {
                                               id:2,
                                               title:"HTML5基础语法",
                                               content:"HTML5基础语法-内容"
                                       }
                               ]
                       },
                       {
                               id:2,
                               category:"VUE",
                               url:"/cs/2",
                               blogs:[
                                       {
                                               id:1,
                                               title:"VUE",
                                               content:"VUE-内容"
                                       },
                                       {
                                               id:2,
                                               title:"VUE基础语法",
                                               content:"VUE基础语法-内容"
                                       }
                               ]
                       }
               ],
               hotblogs:[
                       {
                               id:3,
                               category:"HTML",
                               url:"/cs/3",
                               blogs:[
                                       {
                                               id:1,
                                               title:"HTML5标签",
                                               content:"HTML5新增标签-内容"
                                       }
                               ]
                       },
                       {
                               id:4,
                               category:"VUE",
                               url:"/cs/4",
                               blogs:[
                                       {
                                               id:2,
                                               title:"VUE",
                                               content:"VUE-内容"
                                       }
                               ]
                       }
               ]
       }
        },
        getters: {

        },
        mutations: {

        },
        actions: {},
        modules: {}
    }
)
